package com.senlingspace.payment.douyin.bean.request;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.senlingspace.payment.douyin.DouyinFunctionEnum;
import com.senlingspace.payment.douyin.bean.response.DouyinBatchQueryTicketStatusResponse;
import lombok.Data;

/**
 * 抖音批量查询券状态请求类
 *
 * @author lebronjames
 * @date 2024/07/24
 */
@Data
public class DouyinBatchQueryTicketStatusRequest implements DouyinRequest<DouyinBatchQueryTicketStatusResponse> {

    /**
     * 验券准备接口返回的加密券码
     */
    @JsonProperty("encrypted_code")
    private String encryptedCode;

    /**
     * 订单id
     */
    @JsonProperty("order_id")
    private String orderId;

    @Override
    public DouyinFunctionEnum getFunction() {
        return DouyinFunctionEnum.batch_query_ticket_status;
    }

    @Override
    public String getBody() {
        return "encrypted_code=" + this.encryptedCode + "&order_id=" + this.orderId;
    }

    @Override
    public Class<DouyinBatchQueryTicketStatusResponse> getResponseType() {
        return DouyinBatchQueryTicketStatusResponse.class;
    }

}
